import request from '@/utils/request'
export function getCompanyForms(params) {
  return request({
    url: '/api/Form/FormManage/GetCompanyForms',
    method: 'get',
    params
  })
}
export function getCompanyFlows(params) {
  return request({
    url: '/api/Form/FormManage/GetCompanyFlows',
    method: 'get',
    params
  })
}
export function getCompanyOnlineFlowTree() {
  return request({
    url: '/api/Form/FormManage/GetCompanyOnlineFlowTree',
    method: 'get',
  })
}
export function getCompanyFlowTree() {
  return request({
    url: '/api/Form/FormManage/GetCompanyFlowTree',
    method: 'get',
  })
}
export function getMyFlowTree() {
  return request({
    url: '/api/Form/FormManage/GetMyFlowTree',
    method: 'get',
  })
}
export function getMyForms(params) {
  return request({
    url: '/api/Form/FormManage/GetMyForms',
    method: 'get',
    params
  })
}
export function getMyWaitHandleForms(params) {
  return request({
    url: '/api/Form/FormManage/GetMyWaitHandleForms',
    method: 'get',
    params
  })
}
export function getMyHandledForms(params) {
  return request({
    url: '/api/Form/FormManage/GetMyHandledForms',
    method: 'get',
    params
  })
}
export function getMyCreatedForms(params) {
  return request({
    url: '/api/Form/FormManage/GetMyCreatedForms',
    method: 'get',
    params
  })
}
export function getMyCopiedForms(params) {
  return request({
    url: '/api/Form/FormManage/GetMyCopiedForms',
    method: 'get',
    params
  })
}
export function getMySharedForms(params) {
  return request({
    url: '/api/Form/FormManage/GetMySharedForms',
    method: 'get',
    params
  })
}
export function shareForm(data) {
  return request({
    url: '/api/Form/FormManage/ShareForm',
    method: 'post',
    data
  })
}
export function urgeForm(formId) {
  return request({
    url: '/api/Form/FormManage/UrgeForm',
    method: 'get',
    params: { formId }
  })
}
export function hideForm(formId) {
  return request({
    url: '/api/Form/FormManage/HideForm',
    method: 'get',
    params: { formId }
  })
}
export function getMyWaitHandleFormCount(formId) {
  return request({
    url: '/api/Form/FormManage/GetMyWaitHandleFormCount',
    method: 'get',
    params: { formId }
  })
}